/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.belfalas.simy86.operadores;

import org.belfalas.simy86.Y86;

/**
 *
 * @author belfalas
 */
public abstract class JXX extends Operador{

    @Override
    public void fetch(org.belfalas.simy86.Operador_Stat stat) {
        stat.valC = Y86.memoria.readSignedWord(stat.pc+1);
        stat.valP = stat.pc+5;
        stat.predicted_pc = stat.valC;
    }

    @Override
    public void decode(org.belfalas.simy86.Operador_Stat stat) {
        
    }

    @Override
    public void memory(org.belfalas.simy86.Operador_Stat stat) {
        
    }

    @Override
    public void writeback(org.belfalas.simy86.Operador_Stat stat) {
        //PC.position = (int)(stat.Cnd ? stat.valC : stat.valP);
    }
}
